<?php

class calendar_m extends CI_Model {

	public function __construct() {
		parent::__construct();
		$this->load->database();
	}

	public function getCalendars($user_id)
	{
		$sql = "SELECT * FROM calendar WHERE user_id = $user_id and status = 0";
		$query = $this->db->query($sql);
		return $query->result();
	}

}	